#ifndef _MEMORY_H_
#define _MEMORY_H_

#include <bitset>
#include <ipc/Spinlock.h>

class Memory {
public:
	Memory();
	dword Alloc(dword start, dword frames);
	void Free(dword start, dword frames);

private:
	bitset<1048576> bitmap;
	Spinlock Lock;
};

extern class Memory Memory;

#endif
